package com.henzil.siji;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;

public class SelectCityAdapter extends ArrayAdapter{

	private SelectCityActivity context;
	
	public SelectCityAdapter(Context context, int textViewResourceId,
			List objects) {
		super(context, textViewResourceId, objects);
		this.context = (SelectCityActivity) context;
	}
	
	@Override
	public View getView(int position, View convertView, ViewGroup parent) {
		
		if(convertView == null){
			convertView = context.getLayoutInflater().inflate(R.layout.city_list_item, parent, false);
		}
		return convertView;
	}

}
